package com.situ.studentmanagement.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by niugao on 6/12/2016.
 */

@Component("testb")
public class Person {
    @Autowired
    private Pet pet;

    public void showPetType(String abc){
        System.out.println(this.pet.getType());
    }

    public Pet getPet() {
        return pet;
    }

    public void setPet(Pet pet) {
        this.pet = pet;
    }
}
